package com.woniuxy.yoga.coach.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 修改密码的参数对象
 */
@ApiModel("修改密码的参数对象")
@Data
public class ModifyPassForm {
    /**
     * 教练ID
     */
    @NotNull(message = "教练ID不能为空")
    @ApiModelProperty("教练ID")
    private Integer coachId;

    /**
     * 密码
     */
    @Length(min = 6,max = 8,message = "密码长度有误")
    @ApiModelProperty("密码")
    private String coachPass;
}
